function GameState() {
	/* Called once. Put your one-time initializing here. */
	this.setup = function() { log('setup'); }

	/* Called each gametick. Put your gamelogic here. */
	this.update = function() { log('update');  }

	/* Called each gametick after update(). Put your drawing here. */
	this.draw = function() { log('draw'); }
}

function log(text){
	var canvas = document.getElementById('drawingSpace');
	if(canvas.getContext){
		var context = canvas.getContext('2d');
		context.fillStyle = "rgb(255, 255, 255)";
		context.fillRect(0, 0, canvas.width, canvas.height);
		context.fillStyle    = '#000';
		context.font         = '30px sans-serif';
		context.textBaseline = 'top';
		context.fillText(text, 0, 0);
	}
}